package com.one.group.service;

import com.mybatisflex.core.service.IService;
import com.one.group.model.dto.QueryPersonnelDto;
import com.one.group.model.dto.SpHouseAddDto;
import com.one.group.model.dto.SpHouseAddPlusDto;
import com.one.group.model.dto.SpHouseUpdateDto;
import com.one.group.model.entity.SpHouse;
import com.one.group.model.vo.HouseManagementVo;
import com.one.group.model.vo.SpHouseVo;

import java.util.List;

public interface SpHouseService extends IService<SpHouse> {
    List<HouseManagementVo> getHouseManagementList(Long buildingId);

    List<String> getunitList(Long buildingId);

    List<String> getfloorList(Long buildingId);

    boolean myadd(SpHouseAddDto spHouseAddDto);

    boolean myUpdate(SpHouseUpdateDto spHouseUpdateDto);

    boolean removeByBuildingId(Long buildingId);

    boolean addAllHouse(SpHouseAddPlusDto spHouseAddPlusDto);

    boolean addOwnerIdById(Long houseId,Long ownerId);

    Object queryPersonnelByHouseId(QueryPersonnelDto queryPersonnelDto);
    SpHouseVo queryHouseById(Long Id);

    List<SpHouse> myListByOwnerId(Long ownerId);

    Long getOwnerId(Long ownerId);

    String myGetById(Long houseId);

    String sendMail(String message, Long ownerId);
}
